@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=DM+Sans:wght@300;400;500;600&display=swap');



/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background-color: #0E7B77;
    background-image: url(../images/merTurquoise.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 60px;
}

/* ── Card wrapper (replaces .membershippages inline styles) ────── */
.membershippages {
    width: 460px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0,0,0,0.12);
    padding: 44px 40px 36px !important;
    animation: cardRise 0.5s cubic-bezier(.22,.68,0,1.2) both;
    margin-top: 20px;
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Card header ──────────────────────────────────────────────── */
.mem-header {
    text-align: center;
    margin-bottom: 30px;
}

    .mem-header .mem-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0E7B77, #3FA7D6);
        margin-bottom: 14px;
        box-shadow: 0 6px 20px rgba(14,123,119,0.35);
    }

        .mem-header .mem-icon svg {
            width: 26px;
            height: 26px;
            fill: none;
            stroke: #fff;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

    .mem-header h2 {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.75rem;
        color: #0a4f52;
        letter-spacing: -0.02em;
        margin-bottom: 6px;
    }

    .mem-header p {
        font-size: 0.875rem;
        color: #7a9a9a;
        font-weight: 300;
    }

/* ── Form groups ──────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: #4a6a6a;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 7px;
    }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d5e5e5;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #1a3535;
    background: #f7fbfb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

    .form-control:focus {
        border-color: #0E7B77;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(14,123,119,0.12);
    }

    .form-control.is-invalid {
        border-color: #e05555;
        background: #fff8f8;
    }

        .form-control.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(224,85,85,0.12);
        }

/* ── Password wrapper ─────────────────────────────────────────── */
.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 44px;
    }

.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #9ababa;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
}

    .toggle-pw:hover {
        color: #0E7B77;
        opacity: 1;
    }

    .toggle-pw svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

/* ── Validation feedback ──────────────────────────────────────── */
.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #e05555;
    font-weight: 500;
}

/* ── Alert box ────────────────────────────────────────────────── */
.mem-alert {
    background: #fff3f3;
    border: 1.5px solid #f5c6c6;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 0.875rem;
    color: #b94040;
    line-height: 1.6;
}

    .mem-alert p {
        margin: 0;
    }

        .mem-alert p + p {
            margin-top: 6px;
        }

    .mem-alert.mem-alert--success {
        background: #f0faf9;
        border-color: #a8d8d5;
        color: #1a6360;
    }

/* ── Submit button ────────────────────────────────────────────── */
.btn-mem {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0E7B77 0%, #0a5e5b 100%);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 14px rgba(14,123,119,0.35);
    margin-top: 4px;
}

    .btn-mem:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(14,123,119,0.4);
        opacity: 1;
    }

    .btn-mem:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(14,123,119,0.3);
    }

	.btn-mem:disabled {
	    opacity: 0.6;
	    cursor: not-allowed;
	}

/* ── Divider ──────────────────────────────────────────────────── */
.mem-divider {
    border: none;
    border-top: 1px solid #e5eeee;
    margin: 24px 0 20px;
}

/* ── Footer links ─────────────────────────────────────────────── */
.mem-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: #7a9a9a;
    margin-top: 20px;
}

    .mem-footer a {
        color: #0E7B77;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

        .mem-footer a:hover {
            color: #0a5e5b;
            text-decoration: underline;
        }

/* ── Company email notice ─────────────────────────────────────────── */
.mem-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1.5px solid #f5d87a;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #7a5c00;
    line-height: 1.5;
}

    .mem-notice svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
        margin-top: 1px;
        stroke: #c49b00;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── Turnstile centering ──────────────────────────────────────── */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0 6px;
}

/* ── Activation result ────────────────────────────────────────── */
.mem-result-links {
    margin-top: 18px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

    .mem-result-links a {
        display: inline-block;
        padding: 9px 22px;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
    }

        .mem-result-links a.btn-outline {
            border: 1.5px solid #0E7B77;
            color: #0E7B77;
            background: transparent;
        }

            .mem-result-links a.btn-outline:hover {
                background: #0E7B77;
                color: #fff;
            }

        .mem-result-links a.btn-solid {
            background: linear-gradient(135deg, #0E7B77, #0a5e5b);
            color: #fff;
            border: 1.5px solid transparent;
            box-shadow: 0 4px 12px rgba(14,123,119,0.3);
        }

            .mem-result-links a.btn-solid:hover {
                filter: brightness(1.1);
            }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 520px) {
    .membershippages {
        padding: 30px 20px 28px !important;
        border-radius: 16px;
    }

    .mem-header h2 {
        font-size: 1.45rem;
    }

    .mem-footer {
        justify-content: center;
        text-align: center;
    }
}